/*
 * @Description: 
 * @Author: sanghx
 * @Date: 2020-07-09 17:33:20
 * @LastEditors: sanghx
 * @LastEditTime: 2020-07-10 08:52:16
 */
import Vue from 'vue'
import Router from 'vue-router'
import NotFound from './views/404.vue'
import Login from './views/Login'

Vue.use(Router)

let routes = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login,
      hidden: true
    },
    {
      path: '/datav',
      name: 'Datav',
      component: () => import('./views/datav.vue')
    },
    {
      path: '/404',
      name: '404',
      component: NotFound,
      hidden: true
    },
    {
      path: '*',
      hidden: true,
      redirect: { path: '/404' }
    }
  ]
})

export default routes;